/**
 * Created on 2017年02月16日 by hexin
 */
package com.ahdms.es.ocsp;
/**
 * 常量类
 * @Title 
 * @Description 
 * @Copyright <p>Copyright (c) 2015</p>
 * @Company <p>迪曼森标识技术有限公司Co., Ltd.</p>
 * @author hexin
 * @version 1.0
 * @修改记录
 * @修改序号，修改日期，修改人，修改内容
 */
public class Constants {

	//OCSP配置------------------------------------------------------------------------------
	
    public static final int SUCCESSFUL = 0;  //成功
    
    public static final int MALFORMED_REQUEST = 1; //请求数据编码格式不正确
     	
    public static final int INTERNAL_ERROR = 2;// ocsp服务器系统内部错误
    
    public static final int TRY_LATER = 3; //稍后请求(ocsp服务器)
    
    public static final int SIG_REQUIRED = 5; //请求需要签名
    
    public static final int UNAUTHORIZED = 6; //请求未授权
    
    public static final int OCSP_REQ_SIGN_ERROR = 7; //对请求数据签名失败
    
    public static final int OCSP_RES_TYPE_ERROR = 8; //ocsp响应类型错误
    
    public static final int OCSP_SIGN_ALGORITHM_ERROR = 9; //ocsp签名算法错误
    
    public static final int OCSP_SIGN_CERT_NULL = 10; //ocsp签名证书为空
    
    public static final int OCSP_SIGN_VERIFY_ERROR = 11; //ocsp签名验证失败
    
    public static final int OCSP_CERT_VERIFY_ERROR = 12; //ocsp证书验证失败
    
    public static final int OCSP_RES_TIME_ERROR = 13; //ocsp响应时间异常
    
    public static final int OCSP_THISUPDATETIME_ERROR = 14; //ocsp响应单个响应，证书状态本次更新时间异常
    
    public static final int OCSP_CERTID_ERROR = 15; //ocsp响应单个响应与单个请求，证书标识CertID结构对比错误
    
    public static final int OCSP_NONCE_ERROR = 16; //ocsp请求响应中随机数扩展项不匹配
    
    //OCSP配置------------------------------------------------------------------------------
    

}

